<%@ page pageEncoding="UTF-8"%>
<%@ include file="/common/validate.jsp"%>
<%
    List<Map> depts = QBuilder.db("basedb").select("new map(deptName as title, branch as branch, (case when summary is NULL then '' else summary end) as summary, (case when img is NULL then '' else img end) as img, (case when content is NULL then '' else content end) as content, (case when imgs is NULL then '' else imgs end) as imgs)").from("Dept").where(new Where("hospital=", hospital).and("status = ", STATUS_ENABLE).and("type=0")).query().getResultObj();
    if (isEmpty(depts)) {
        msg = new Message(30041, "暂无科室介绍");
    }
    msg.put("data", depts.get(0));
    Tools.encryptPrint(out, msg);
%>
